package ns2;

public class Connection {
	private int src;
	private int dst;

	public Connection(int src, int dst) {
		this.src = src;
		this.dst = dst;
	}

	public Connection(Trace trace) {
		this.src = trace.src_addr.nodeID;
		this.dst = trace.dst_addr.nodeID;
	}

	public boolean equals(Connection connection) {
		if ((this.src == connection.src) && (this.dst == connection.dst)) {
			return true;
		} else {
			return false;
		}
	}

	public int getSrc() {
		return src;
	}

	public int getDst() {
		return dst;
	}
}
